package com.kgc.javaweb.service;



import com.kgc.javaweb.dto.UserPageDTO;
import com.kgc.javaweb.entity.Notice;
import com.kgc.javaweb.entity.User;
import com.kgc.javaweb.entity.UserInfo;
import com.kgc.javaweb.util.ResponseResult;

public interface UserService {

    UserInfo login(String username, String password);


    Boolean checkUserName(String username);

    void register(String username, String password);

    ResponseResult updateUserInfoPwdById(String newPassword, Integer id);


    ResponseResult selectById(String id);

    ResponseResult update(UserInfo userInfo);


//========================================================================
    // //姜智博
//========================================================================
    //用户管理
    ResponseResult selectUserPage(UserPageDTO userPageDTO);

    ResponseResult selectUserById(Integer id);

    ResponseResult updateUser(User usr);

    ResponseResult addUser(User usr);

    ResponseResult deleteUser(String ids);


//========================================================================
    //姚俊涛
//========================================================================

    ResponseResult selectAdminPage1(UserPageDTO userPageDTO);

    ResponseResult selectAdminPage2(UserPageDTO userPageDTO);

    void state(Boolean checked,Integer id);

    ResponseResult selectAdminById(Integer id);

    ResponseResult updateAdmin(Notice notice);

    ResponseResult addAdmin(Notice notic);

    ResponseResult deleteAdmin(String ids);

    ResponseResult updateAdminPwdById(String newPassword, Integer id);


}
